/**
 * Created by CodeTlan.
 * User: hellreuter
 * Date: 3/31/12
 * Time: 3:53 PM
 */
Ext.define('CT.view.consulta.Window',{
    extend: 'Ctc.view.Window',
    alias: 'widget.winconsultas',
    title: 'Consulta Trabajadores',
    buildItems:function(){
        return [{
            xtype:'panel',
            region:'center',
            layout:'border',
            items:[{
                    xtype:'infogridconsulta',
                    region:'north',
                    height:40,
                    title:'Información'
                },{
                    xtype:'container',
                    region:'center',
                    layout: {
                        type: 'hbox',
                        align: 'stretch'
                    },
                    items:[{
                        xtype:'congridconsulta',
                        title:'Contratos',
                        flex:4
                    },{
                        xtype:'milgridconsulta',
                        title:'Militancias',
                        flex:3
                    }]
            }]
            },{
                xtype: 'formconsulta',
                layout: 'column',
                region: 'east',
                width:200,
                callapsible: true,
                collapseDirection: 'left',
                title: 'Busqueda',
                iconCls: 'reload'
            }
        ];
    },
    renderTo:'containerprincipal'
});